/////////////////////////////////////////////////////////////////////////
//
// Amuse Engine SDK - resource
// Copyright( c) 2014.  All Rights Reserved
//
// File:		AEGpuResource.inl
// Author:		Gianluca Belardelli
// Date:		19/12/2014
//
/////////////////////////////////////////////////////////////////////////
#ifndef _AEGPURESOURCE_INL_
#define _AEGPURESOURCE_INL_

AE_FORCEINLINE AEBOOL32 AEGpuResource::IsLocked( void ) const
{
	return m_lpLockedPtr != AENULL;
}

AE_FORCEINLINE void *AEGpuResource::GetLockedPtr( void ) const
{
	return m_lpLockedPtr;
}

AE_FORCEINLINE AEBOOL32 AEGpuResource::HasSysmemCopy( void ) const
{
	return m_bHasSysmemCopy;
}

AE_FORCEINLINE void *AEGpuResource::GetSysmemBufferPtr( void )
{
	return m_lpSystemCopy;
}

AE_FORCEINLINE AEUINT32 AEGpuResource::GetSize( void ) const
{
	return m_uiSize;
}

AE_FORCEINLINE AEUINT32 AEGpuResource::GetUsageFlags( void ) const
{
	return m_uiUsageFlags;
}

AE_FORCEINLINE AEUINT32 AEGpuResource::GetBindFlags( void ) const
{
	return m_uiBindFlags;
}

#if defined( AE_OPENGL ) || ( AE_OPENGLES2 )

AE_FORCEINLINE AEUINT32 AEGpuResource::GetHandle( void ) const
{
	return m_uiHandle;
}

#endif

#endif // _AEGPURESOURCE_INL_
